Hi!
I'm trying to do an export from DOORS to Word. I'm using code attached and additionally the files word.dxl and normal.dotx.
Script seems to be working fine - export is performed, doors closes but the document in Word doesn't save. Word stays open with a window asking whether we want to save it or not, instead of saving automatically.
I've seen similar topics on forum and I tried the solutions mentioned but nothing worked - I tried changing
oleGet(wApp,"Documents",wDoc)
to
oleGet(wApp,"ActiveDocument",wDoc)
but then I get an error "CRCRD5311W: An OLE method failed.
More information: OLE problem: Sorry. we couldn't find your file. Was it moved, renamed, or deleted?. OLE error code: -2146823114."
But all files are in specified folders, doesn't matter how I change my path, and it sees the document when using "Documents" property. When I click to continue it says that "The export failed because the active document was not retrieved".
The same script works on my colleagues computer, with the same project, locations etc. so it might be configuration problem, but I couldn't figure out what might cause it. I have all the permissions and access the same as him.
Do you have any ideas how to get it work?
Thanks,
Ula
UrszulaW - Tue Jun 12 04:00:41 EDT 2018 |